package com.yan.design.two.behavior.s10;

import com.yan.design.two.behavior.s10.sufa.impl.GoodFlay;
import com.yan.design.two.behavior.s10.sufa.impl.NoFlay;

/**
 * 10. 策略模式
 *      玩具鸭子
 * @author shengren.yan
 * @create 2022-08-14
 */
public class Peck extends Duck{

    public  Peck(){
        flay = new NoFlay();
    }

    @Override
    public void display() {
        System.out.println("玩具鸭子");
    }


}
